package org.sn.jdish.spring.demo.controller;

import org.sn.jdish.spring.demo.biz.RedisBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/redis")
public class RedisRest {
	
	@Autowired
	private RedisBiz RedisBiz;

	@ResponseBody
	@RequestMapping(value = "/del", method = RequestMethod.GET)
	public String del(String... keys) {
		return RedisBiz.del(keys).toString();
	}

}
